<#import "commons.ftl" as m/>

package <@m.getBasePackage param=context flag=true/><@m.getParamPackage param=context flag=false/>;

import <@m.getFrameBasePackage param=context flag=true/><@m.getFrameValidatePackage param=context flag=true/><@m.getFrameValidate param=context/>;
import <@m.getFrameBasePackage param=context flag=true/><@m.getFrameDataPackage param=context flag=true/><@m.getFrameParam param=context/>;
import java.util.Date;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <pre>
 *  ${(table.comment)!''}接收参数，提供服务接口模型
 * </pre>
 *
 * @author ${context.conf.author!'系统生成'}
 * @email ${context.conf.email!'系统生成'}
 * @version ${context.conf.version!'1.0.0'}
 * @date ${.now?string('yyyy-MM-dd')}
 * @copyright ${context.conf.copyright!'系统生成'}
 */
@Getter
@Setter
@ApiModel(description = "${(table.comment)!''}")
public class ${table.upperName}<@m.getParamSuffix param=context/><@m.getFrameExtendsParam param=context/> {
<#if table.dataList??>
  <#list table.dataList as field>
  	<#if field.writeDomain>
	/**
	 * <pre>
	 *  ${field.comment!''};字段长度:${field.length!''},是否必填:<#if field.must?? &&field.must=='NO'>是<#else>否</#if>。
	 * </pre>
	 */
	<#if field.annotation??>
	<#list field.annotation as fe>
	${fe}
	</#list>
	</#if>
    private ${field.javaType!''} ${field.lowerName!''};
    </#if>
  </#list>

</#if>
	@Override
	public String toString() {
        return ToStringBuilder.reflectionToString(this);
	}
	
}
